OFFSET SPRITE

This command will shift the position of the drawn image without affecting the coordinate of the specified sprite.

  Syntax
OFFSET SPRITE Sprite Number, XOffset, YOffset
  Parameters
Sprite Number
Integer
The sprite number
XOffset
Integer
The command will shift the position of the drawn image without affecting the coordinate of the specified sprite on the x
YOffset
Integer
The command will shift the position of the drawn image without affecting the coordinate of the specified sprite on the y

  Returns

This command does not return a value.

  Description

You can use this command to change the visible sprite in relation to the coordinates you use to position it. The parameters should be specified using integer values.

  Example Code
cls
load image "man.bmp",1
sprite 1,100,100,1
wait 1000*8
offset sprite 1,sprite width(1)/2,,sprite height(1)/2
do
loop
end
  See also

SPRITE Commands Menu
Index